﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace AngularCabasi
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute("First", "", new { controller = "Default", action="Home" });
            routes.MapRoute("Login", "Login", new { controller = "Default", action = "Login" });

            routes.MapRoute("Event", "Event/{id}", new { controller = "Event", action = "Index" });
            routes.MapRoute("Generic", "{controller}/{action}/{id}", new { controller = "Default", action = "Index", id = UrlParameter.Optional });
        }
    }
}